import React, {Component, Fragment} from 'react';
import {inject, observer} from 'mobx-react';
import {toJS} from "mobx";
import {
    WeaLocaleProvider,
    WeaTab,
    WeaTop,
    WeaDialog,
    WeaNewScroll,
    WeaRightMenu,
} from "ecCom";
import {WeaTableNew} from "comsMobx";

const {getLabel} = WeaLocaleProvider;
const {WeaTable} = WeaTableNew;

@inject("systemSettingStore")
@observer
class InitConfigListComponent extends Component {

    componentDidMount() {
        const {systemSettingStore} = this.props;
        systemSettingStore.getInitConfigTableData();
    }

    render() {
        const {systemSettingStore} = this.props;
        const {initConfigTableStore, authorized, loading} = systemSettingStore;
        return (
            <div className="init-config-list">
                <WeaTable
                    hasOrder={true}
                    needScroll={true}
                    comsWeaTableStore={initConfigTableStore}
                />
            </div>
        );
    }
}

export default InitConfigListComponent;
